refactored tree node and edge, finding min. element in matrix, created modules