Adds function MemorySize which returns the size of available memroy