Move cpp files

Moves the cpp files up one dir, as suggested in discussion of PR #40.
Somehow this has pieces of the time series moving average thing in it, but the conflicts are probably fixed.