Implemented ArrayList contains/clear.