Algorithm for Writing a Scientific Manuscript