wordladder length reimpl