title: Writing BMP image in pure c/c++ without other libraries
body: <p>In my algorithm, I need to create an information output. I need to write a boolean matrix into a bmp file.
  It must be a monocromic image, where pixels are white if the matrix on such element is true.
  Main problem is the bmp header and how to write this.</p>