added dot product to vectors