Merge pull request #897 from karlnapf/master

More unit tests and bugfixes for MMD kernel selection
illustrate use of precomputed kernel and some minor changes
more illustrative example that is similar to the libshogun one