basic template class representation for genetic algorithms. The class is not optimized but very easy to use with any data type.