Made the library work with rust nightly

Collections were changed, primarily find_equiv which caused the failure.