C-curve and dragon curve with recursion function