Some Algorithms