Functions to get the median, random sample and majority from a stream of unknown length