A spatial patch model with 2 stages and competition in C++