added maxOfArray function to utils and tested it