added equals function for comparing compressed bit vectors