Exchanged standard arraylist for custom arraylist implementation