Rewrote fibGenPoly as pattern matched definitions rather than single definition using `case of`.