bheap: now working.