Added a new function file

Added a new function file that checks whether the newly learned affine
transformation is the combination of previously learned independent
functions or is it a completely new function.