Implemented the Wilson's algorithm.