Array Within An Array Javascript Length Function Matlab Code For Bisection