nth_tail changed implementation.
bitarray functions refactored.