Implemented a binary heap class and associated tests.