implemented and tested getSelectedQDsXYZCoords and findGoodQDs
implemented separateContourMatrix function