Improved significantly the box counting algorithm. Now it uses numpy arrays.