Added Draft of Algorithm