Forward and Line-Based Cycle Bases for Periodic Timetabling