Added templated pinv
Added recursive rls tasks