Add timing code
Add midterm writeup