Modified Polynomial to add a constructor that accepts array of doubles.
This is not yet completed, will ask Marvin to continue this.