merge iForests code