Update vector2 class