Add solution algorithm for first layer.