Various algorithms and graphic application