updated algorithms lib