Added mean, median, mode

Try using the splice method instead of two shifts: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/splice