Corrected calculation of array size and added a threshold method selection:

- The old calculation could lead to an array out of index error. I had to
use the method ceil() instead of floor.
- Li might not be the best threshold method. I added an option to change
the method used for thresholding.

Signed-off-by: Michael Entrup <entrup@arcor.de>
Removed a backup file.
Merge pull request #4 from EFTEMj/scripts+macros

Scripts+macros