prettified output
renamed parameter blockdim into threads
add heuristics for small and medium kernel as well