Move function to functions file.
Improve speed for to.make.poly function.