Setting up solver classes
Added solve code and cleaned up template parameters