Application of Graham scan algorithm in binary phase diagram calculation