Real reverse algorithm #31