How to store binary numbers of more than 15 bits

Hi,
I made an algorithm which generates binary numbers (with certain specifications), their minimum length is 15 bits.
Some of these numbers can't be stored in any integer data type (long data type has a maximum of 2147483647 using VS 2008's compiler).
I tried to store the numbers using string but failed.
Is there any way to store these numbers ? As I need them to be sorted too.
And if strings are possible, is there an easy solution to sort these numbers ?
Thanks
