A worked out example on dynamic programming to find best join ordering (use board)