further cleanup in ex9 and moves w,h,nc,kernel_size into constant GPU memory