Fixed and finished brkga.