add DecodeWays.java class