Fractional Operations implemented in Cpp