re-organization algorithm package