Recursion and 2D vector