Make blockdim a template-parameter