Create MedianWatcher.java

Optimized code to return median value in a stream