Koch curve implementation