derivative pricing using cpp