added medHeap and edited other files