Some advances in the hierachical feature-based classifier;
Addition of functions difference2 and limit
Signed-off-by: Paulo Hack <ph_hack@hotmail.com>