machine flowchart for hardwater treatment