Adding simple heap APIs