Worked on memory management: getting avalible memory