1)fix the bug of generateCamPoses_Inplane
2) change the function computeCost so it compute the pairwise cost
3) minor change of mainKillDevil.m in the line of calling computeCost