actually test the heap implentation and then fix bugs