first iteration of the "logfather" log stacking problem