Polynomial Functions - Mastermind