Fixed the number of subtrees to be a power of two, and changed the parallelisation of UpdateHmaxValues to work also with older openMP versions