First prototype of the algorithm class using a vector space.