scan operating and moving matrix
move index.js out of src
move index.js
add test