Works till i=24. After that not tested
Need to add parents in make_balance(void). Now does not work at all.