added sharedFitness calculation function & templete for
EuclidianDistance function
added shared function calculation and euclidian distance template