add algorithms code