add minPath algo
deleted dat/mat