Program algorithm Vectors