Text this: An effective algorithm to identify the miscibility gap in a binary substitutional solution phase