Adding LFTs support to comparison module

Signed-off-by: Ilya Nelkenbaum <ilyan@mellanox.com>
Signed-off-by: Hal Rosenstock <hal.rosenstock@gmail.com>
Memory leaks fix

Signed-off-by: Ilya Nelkenbaum <ilyan@mellanox.com>
Signed-off-by: Hal Rosenstock <hal.rosenstock@gmail.com>