implement Koch curve