first commit suggest algorithm
debug algorithm