Search for Lambda+(c) ---> p K+ pi- and D+(s) ---> K+ K+ pi- using genetic programming event selection