Properties of Shortest Length Curves inside Semi-Algebraic Sets and Problems related to an Erdos Conjecture concerning Lattice Cubes