on each wall stood shelves as high as the towering ceiling , where lay a vast array of ancient and modern wisdom , both in old scrolls and in the more modern codices , which were long sheets of parchment folded many times to form pages in convenient handheld tomes .