Rewritten rect_nfa. Behaving faster and better.
Added horizontal lines test.
Reshuffled constructor arguments.
Added perf_test.