Switched from LinkedList to ArrayList since it perform better in all situations here