merged lib_fib and lib_gcd into lib_cal