RNN without derivatives — the cross-entropy method