completed second task for polynom class, realised integration, differention, fixed compare method