code and problem sets for CS281a at Berkeley (Spring 2014)