Added basic polynomial type and some basic functions.