function multiplex() { var len = Math.pow(2, misses), ... "2" is a magic number, it should be moved to config.
function multiplex() {
var len = Math.pow(2, misses),
...
"2" is a magic number, it should be moved to config.