Analysis of a Theoretical Model Based on Similarity for Studying RNA Base Pairings