Lots of fixes: euclidean masked loss layer, net and solver definition added for testnet and mitintrinsic net