S original by David W. Scott
        R port by Albrecht Gebhardt <albrecht.gebhardt@aau.at>
        adopted to recent S-PLUS by Stephen Kaluzny <spk@insightful.com>
David Scott's ASH routines ported from S-PLUS to R.