added partial implementation of min max heap