Added function bestsplit
Fixed bestsplit
Merge branch 'master' into dev

Conflicts:
	src/common.r