Speeding up Problem10 and adding comments to 12.