Algorithm 1
Algorithm 2