add solution for decode_ways