Reorganising folders to reduce duplication of examples

Will require some refactoring of example cpp files.