initialize temp=0 in matvec (get rid of annoying bug)