Depth-search algorithm in example of two glasses of water with 5,3 liters bulk