Fix error in saving result of selection

The problem was in the size of used arrays for pion pairs.

I fixed size = 2. But it should be in range from 0 to 2