Added testdata directory to version control.

The testdata files are referenced directly in the JUnit tests, so it
makes sense to include them in the CVS.
Added return type to outputToFile.

Now returns the file that it generates.
Implemented rest of test methods.

No longer tests the main method, as this method is likely to
be pulled out and placed elsewhere anyway.
Initial work on the solver class.