correctly compute sw_trace_nd and remove if test in sw_trace to gain a
little bit of performance
sw_trace_nd: explicitly take the real part of the determinants to avoid a possibly incorrect logarithm of a complex number due to roundoff effects
Merge pull request #288 from kostrzewa/sw_trace_nd_bugfix

correctly compute sw_trace_nd