remove main script, to be replaced with test suite
fix #3: ensure shape consistency in matvec