Is there a reason this is not in the algorithms package?