more work on the generic algorithm
added genetic algoritm example
added underscore