created class mode to return the most common number in an array