math: improvements in fibonacci dynamic