add dot and cross method to Vector2 class