Added swap and isAvl answer checker to checkAnswer