Implemented simple version with shared memory for the filter.

Also a way to select between them. Alas, the shared memory version doesn't
run any faster. Perhaps not splitting the image to channels would help here.