Bitmap Primitives Helpers

Bitmap primitives helper functions for manipulating bitmap in memory as an array of tuples (x,y,color).