add methods to get maximum {block,key,output} lengths