Improve Maximizing_XOR and add solution to gem-stones