Shortest path algorithm in Dart, CPS'ed, defunctionalized and made cool!