Templating lvec_new
Work on issue #1