Fixed bad matrix-vector performance in Cuda #257, #258