MySolution: change of route data type

Change of route: from array to arraylist. Methods are changed
accordingly