initial version of Retry - provide a callback and an array of delays in milliseconds. Retry will execute the call for each time specified in the provided array