Dense quotmod fixed

dense quotmod now functions as expected
separated the tests into dense and sparse variants