gradient map

multipart project 2
part 2 of, I don't know, like 5

Background:
A gradient map filter would index an arbitrary palette
based on the value of some component of the input.

Task:
- write a shader to implement a gradient map filter
- benchmark the performance
