Changed the setupPalette function from being implementation jargon to public, documented and called setupGrayscalePalette.

Also:
 - Changed all references from `setupPalette()` to `setupGrayscalePalette()`.
 - Changed the second argument of `setupGrayscalePalette()` from a std::size_t to an uint8_t.