converting memory to meg