Improved version of fitness function polynomial