Added new edge scoring implementation and unit test