Space-Efficient Data Structures in the Word-RAM and Bitprobe Models