Implemented unefficient version of remove(i)