Added draft implementation of SAL algorithm.