lzw | Govind | Refactoring toBinary