add unit test of onlineMedian