Add remove(int i) method with first attempt at working code.