patches: fixed bug in reconstruction from ICA basis with dimension different from patch size; fixed bug in reconstruction given maximum RMSE in ICA and KSDV cases