changed all solver acessors to retrun references to const
reduced the number of allocation of n_bases, etc...