kernel optimization for C50K