Revert "solved f8 bellman_ford_opt"

This reverts commit b1f1bd660acaa142a36951a6f687ba497190a35e.