Finding the Length of Bases