add documentation: Jamie Zawinsky's algorithm