forming linear combinations of vectors