Added a problem based on modified floyd warshall.