A model for base overlap in RNA