Fixed bug in roots (n is the chopped length)