Added class Cubic to find the real roots of a cubic polynomial.

Added unit test class CubicTest.