A new kernel for sgminer and gminer