fix removeObjectAtIndex when index is 0 and use removeObjectAtIndex for removeFirstObject and removeLastObject