draft of the graph colouring algorithm