CPU computes the leaf final

Bug here: tree leaves path