(malloc changed to ( malloc for macro SCC version working with 4 cores