overloaded index operator and added reverse complement method