A self-index structure based on CSA