There's so many ways of going about this...

Try this as a brief intro to get you started on one method...

http://www.acm.uiuc.edu/sigarch/tutorials/ledarray/

Melanie