Added methods prepare_data_page_sequence and gram_freq_in_sessions_for_pages