Linear systems: Solve linear equations

Pivotal tracker 54330114

Implemented the solver for dense and sparse linear systems