Recurrence algorithms of waiting time for the success run of length $k$ in relation to generalized Fibonacci sequences