use size_t instead of unsigned
- use std::fill to initizalize entries
- prefer || to <
change write(ostream) to write(filename)
fix tab/space