improve calc function CRITBINOM

CRITBINOM could not handle large sample quantities, e.g.
CRITBINOM(1080,0.5,0.1).
This patch fixes that and also improves the efficiency of
the function by always iterating from the end nearest to
the cumulative binomial distribution.

Change-Id: I35f965acc83e26141fb2cf5a7e3303ec0791f04a
Reviewed-on: https://gerrit.libreoffice.org/6559
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>