Create lambda_tau_for_trees

This includes the main functions