cpp code & organize

uploaded Matt's new cpp code and reorganized folders