[A] Template Match Codes

Added template match codes.
[A] Post Processing Functions

Added post processing functions.