Added function to choose decay segments
Added function to choose decay segments

Added function to choose decay segments and fill in the
array with the number of continuous segments. Function
return value is not stored anywhere yet. Also, code
compiles but it isn't tested.

Signed-off-by: Kim Jones <160cf344c1362ca60c9492925665d2bb268437e5@edu.salford.ac.uk>

kimmariejon3s/rt-blind-estimator