Implemented a working versiong of SAS algorithm