Mathematical algorithm Vectors