Tournament selection implemented

Nearly all datatypes changed to double to avoid any truncation.