A matrix implementation for osrm