Remove the item at the given index from a list