Ruby algorithm package