Adaptive Coding and Prediction of Sources with Large and Infinite Alphabets