Compressed Suffix Arrays and Suffix Trees