Jack Lisowski beat Ding Junhui 10-9 in a classic World Championship first round match at the Cruicible.