Solutions to the assignments of Stanford CS 106A class