Changed use of LinkedList to ArrayList for random access
Changed use of ArrayList to LinkedList for better performance