Added serial versions of the three kernels.

Added serial versions of the three working kernels. This is currently not compil... ing due to issues with the way we are addressing the Mat data structures. Mat does not natively support using input[pos] or input[row][col].