using pinv in regression