test cases have been added to howMedianOfArray