Optimize performance of Buffer#line_begins

Replace push/reverse with unshift. This is generally about 10 times
faster according to my simple benchmarks.
Merge pull request #42 from bbatsov/optimize-line-begins

Optimize performance of Buffer#line_begins