optimising heapify, and getting some interesting test results