added "&& i < Nxyzcr()" condition to constructor of Vecfun and removed this condition from all loops immediately after Vecfun constructors