Add deterministic slowsha and its unit test