add algorithm solutions