Add algorithm first phase to paper