Update the trace log generation

The optimization is based on remove the duplicated lines in the trace taking as base the line number and the
address memory

Signed-off-by: Herbert Rocha <herberthb12@gmail.com>