linking the sliders to the algorithm and adding default values