fix ArgumentError for dot product on 1-d matrices.(fixes #191)
Merge pull request #195 from rve/issue-191

Fix ArgumentError for dot product on 1-d matrices. Fixes #191.