mods to levmar to compute worksapce size as large of two different query calls