A Learning Search Algorithm for the Restricted Longest Common Subsequence Problem