added joint distributions at edge endpoints computed using both dynamic programming and brute force and with passing tests