Save memory

1. Reduce the unnecessary reserved space.
2. Add few line to observe computation time and I/O time