Implementation of Junction Detection Paper