basic mean and median functionality added
added mode function and fixed tests