find running median from a stream of input integers