Implemented erase. All tests pass.