Man accused of chaining girl in basement pleads not guilty