Fixed the inverse schira functions to check to make sure the prediction matches the origin so as to improve errors.