implemented List's remove(index) method