Move tests to test package

Horton is definitely outgrowing its roots as a module.  This patch
introduces a test package which will replace the existing doctests.

This patch also fixes the internal array to row-major ordering which
resolved a bug in the maze example that would mess up the algorithm
for non-square grids.