Updated medianOfThree

Re-wrote tests
Re-wrote medianofthree() so that it passes tests.