added compilation flags and set algorithm parameters