Math ruby intro: Calculating the median