Code cleanup. Improving ripple_path_find