Before revision:  For any positive integer q>1 , our algorithm takes q^{ \Theta (n)} time and requires q ^{ \Theta(n /q ) } memory.
After revision:  For any positive integer q>1 , our algorithm takes q^{ \Theta (n)} time and requires poly(n)\cdot q ^{ \Theta(n /q ) } memory.