Added very rough osmosis implementation.
Added some dummy code to convert stencils to matrices.