Badly unfinished code of the space efficient greedy RLS.