added std algorithms