A note on the subtree isomorphism for ordered trees and related problems