The step after calculating the NURBS basis for a single evaluated point trimmed extra zeroes from the weights. However, in practice this rarely did anything, only for the first and last evaluated point of certain knot configurations. Remove it in order to simplify code. Also use a separate span for the result, to clarify its length.