application of the bellman ford shortest paths algorithm to find arbitrage cycles in currency exchange rates