multiplying vectors by matrices