Text this: Diagrammatic approach to solve heat-squares adjustment and collocation problems