Create Solver.py

File containing both 'Solver' and 'Grid' classes. Replacing 'BasicFunctions' file.