Skeen's algorithm