improved vec2 class

added algebrical operations to modify the vec2 object in place