small improvements to equivalentHKLs( )