Decision procedure for WS1S in SML