For #5 use cache_function to refactor CD_G and G_CD (in new file issue4tools.py).
For #5 add and use lin_alg_int_inv and fib_zeros_array.
For #5 add C_CD and D_CD.
For #5 add C_G and D_G.