add how to keep record of the median number in a stream of input
add OOD cases