fixed bug when computing number of blocks
removed debug output in cpu computation