Create Array#median method.