Created method to convert list to an ArrayList.
Merge branch 'optimization' of https://github.com/santhnm2/CS196selfdrivingcars into optimization