Minor utils improvements.

Made some improvements to the Domain class including the ability to
construct a Domain object with a specified number of points rather than
a specified step size. Functions now have a 'toArray()' method which
should aid matrix operations in the finite difference algorithm.