Stitching (Random Walk Algorithm)