Algebraic Multiscale Linear Solver for Heterogeneous Elliptic Problems