Update decodeWays_hard.cc