finished implementing ArrayList iterator and equals,hashCode,toString methods