Fixed overflow error in CLinearTimeMMD and CBTestMMD and added libshogun example for B-test

- Fixed a bug in CLinearTimeMMD and CBTestMMD that caused issues due to integer overflow
- Added a libshogun example for B-test MMD