integrated tree optimizer with fixed_matrix and added vector typedefs