exponential backoff implementation (review)

A very basic exponential backoff algorithm that can be plugged into `retry` function. 
Could we specify that this should be > 0?