Added methods for getting top of memory segments
Managed to get lab3a.s working...