removed timing code
implemented recursive algorithm from Orin, Goswami, Lee (2013) in matlab