finished heap implementation, debug next