Memory management and Time Analysis