Added step-by-step algorithm example