A basic matrix search and some JUnit tests.