Create Data mode in theta(n)

Both methods in this file