Fixed threshold percentage calculation by dividing by N*N instead of by N