[Heuristics based on dynamic programming and adjacency restrictions in forest management: an example in a cork-oak grove and its application in a eucalyptus plantation]