A fast method for the calculation of PLS coefficients