add test mode. fix bugs.
fix bugs.
Merge branch 'master' of https://github.com/xiaolongnk/Alglib

Conflicts:
	btree.cc