/r/dailyprogrammer #119 intermediate A* implementation in Ruby