update module to recursively compare arrays
add more tests
fix bug in recursive function