Distance Transform 'Hello World' and time complexity comparison