Replaced Arraylists with LinkedLists