An Objective-C binary heap implementation using a binary tree