removed sort 4 numbers and greatest common divisor as they were sparingly used.