Finished the refactoring using ViennaRNA files. Gradient walk is SLOWER by 70%, but flooding is faster (don't know the reason).