Added a better solution to decode-ways.cpp