Removed useless valgrind checks; implemented to_number; moved HEAP_SZ to Heap class.