save space and fix bug

1. use byte to save space.
2. fix the solution() bug.