Implement dot operator, #27.
Add tests for dot operator, closes #27.