Change cpp from innermost to outermost

Closes #116.