Bugs repaired in: demo.c  jw_ptv.c  orientation.c

Due to bugs in the modified code, the program failed if only 3 cameras
were used, . The bad code has been replaced and the program is running
well now.