Allow chaining during construction of datastream.
Add some checks.
Merge branch 'master' of github.com:OpenANN/OpenANN into speedup