Function to build and display the Cantor Set for each level
function buildCantorSet ( A , B , L ) { var head = null ; head = startList ( head , A , B ) ; for ( var i = 0 ; i < L ; i ++ ) { document . write ( " " + i + " " ) ; print ( head ) ; propagate ( head ) ; } document . write ( " " + L + " " ) ; print ( head ) ; }