heap.go performance improvement

CF custom test output: "Done in 1357"