added a data structure that keeps track of the running median