Java Arraylist Add Method Complexity Approach