North Korean leader, Kim Jong-un, made a surprise visit to Beijing during which he met the Chinese president, Xi Jinping, and pledged his commitment to denuclearising the Korean peninsula.