algos: +added form for input and params to all algos

+fixed overflow bug in binary search caused by a param that is not
included in the input