stubbed myers algorithm linear variation