Speedup matrix dot product using numpy's dot

Use dot() and ensure unittests still work.
Merge pull request #20 from olsoneric/speedup_dot

Speedup matrix dot product using numpy's dot