pulled logic into algorithm class and add alg inverting
Added the ability to specify case instead of alg
Re-added Gemfile.lock