Introduction to online algorithms