code + writeup for q1 (optical flow)