Refactor AMR11F_DIJKSTRA

Signed-off-by: Umair Khan <omerjerk@gmail.com>