Made it do the thing for PA=LU stuff. Algorithm was slightly harder than I thought it would be.