Model: Added LoD algorithm.
Added unit Tests for LoD.