update SomaCubeSolver and TetrisCubeSolver

Close PrintWriters after outputting to file.