Optimized matrix trace computation
Removed posative bias in amoeba optimization