Leyton Orient extended their lead at the top of League Two with a 2-1 home win over bottom club Rochdale.