Proving Algorithm’s Correctness