box count algorithm for calculation of multifractal dimensions added
some minor modifications