Numpy dependency removed and left of median implemented