Adding documentation on the algorithms
A complexity is missing for incomplete_windows, still trying to calculate it.