Fix "git status" and adds diff algorithm