Create array_mode

finds the mode of an array