L1Cost CUNN implementation