cpp implementation of Pascals Triangle II