Added comparing and reverse methods
Added reverse