FWD Solve working for arbitraty n,k,r.  Back Solve working for arbitrary n, r, k=1