An efficient hierarchical optical path network design algorithm based on a traffic demand expression in a cartesian product spac