Made BASEML faster by parallelising some of the tree manipulation routines.

Signed-off-by: Damien Zammit <damien@zamaudio.com>