Debugged array-based heaps and relevant unit tests, updated JavaDoc.