Added sigmoid function. Added trainingExamples to get training examples and cross validation examples.