added in-place stencil
added index() conversion function
added ugly uint8_t <-> int conversions
merge
added apply stencil and unit test