quick find cpp implemention