added SPQ and TSPQ files from smartSegIterator branch
included SPQ and TSPQ into edge definition and redefined spq_ funcs to use SPQ class