algorithm-interface
refactored path printing from algorithms to map