Change vector type to unsigned char
Add file error handling in read_mnist