added memory usage function to readme