Added feature computing source and target side lengths and pair lengths