word ladder: try Bellman-Ford shortest path algorithm

Signed-off-by: xbz <xbz.o3sig@gmail.com>