two simple web APIs which determine the minimum path through a matrix