added array_swap() to Array, and added some private function prototypes to Heap