adds crack algorithm; fixes test vector read error; fixes sort of inputs and outputs