Changed DynamicArray to List (JAVA FTW)