add streaming mmd, refactor linear time mmd
Merge pull request #1959 from lambday/feature/btest

add streaming mmd, refactor linear time mmd
Merge remote-tracking branch 'upstream/develop' into develop