Fix theta-notation in heapmap. About to write some tests for it.