Add methods for checking heap consistency.
Reduce bubble sort test runtime. It's not that interesting, but slow.