Changed V

Into a template with derivatives Vi and Vf (int and float)