an attempt to draw hilbert curves...
line intersection detection