Adds optimisation to VP tree and part of an implementation of MVP trees.