SPFA algorithm added