Fixed Integer issue in findMedian - changed to Float