Added a project function to vectors