Incorporated some new features and bug fixes from py-earth

1. Added allow_linear argument
2. Fixed a bug in the way endspan argument was processed
3. Fixed a bug in the way sample_weights were being applied
4. Added simple test case for 3 (test needs to be improved, may be
platform dependent)
5. Fixed a typo where min_search_points was accidentally
min_searh_points