A Vectorial Approach to Genetic Programming