median tracker with heap (priority queue) implementation