heap memory advantages