Moved analyticalSolution and added algorithms.