add matchFun and matchChar implementations, tests pending