Two Phase Method Algorithm