vectors: use fill_n instead of fill
matrix: use fill_n instead of fill
vector: use fill_n instead of fill
matrix: improve code style