Computer evaluation of Homfly polynomials by using Gauss codes, with a skein-template algorithm