 
     cudaEventElapsedTime(&cuda_elapsedTime,eStart,eStop);
     printf("Stemmer GPU Time=%4.3f ms\n", cuda_elapsedTime);
-    for(int i=0;i<array_size;i++)
+    for(int i = 0;i < array_size;i++)
     {
 
         cudaMemcpy(&(stem_list[i]->j),&(host2_stem_list[i]->j),sizeof(int),cudaMemcpyDeviceToHost);

        z->b = s;
        z->k = i - 1;
        stem_list[a_size] = z;
        //word_list[a_size] = s;        
        //s[stem(z, s, i - 1) + 1] = 0;
        if (a_size == a_max) {
           a_max += A_INC;
           stem_list = (struct stemmer **) realloc(stem_list, a_max);


/*--------------------stemmer definition ends here------------------------*/

#include <limits.h>
#include <float.h>
#include <math.h>
#include <sys/time.h>

static struct stemmer **stem_list;

struct stemmer **dev_stem_list;

#define ARRAYSIZE 4100000
#define A_INC       10000
#define INC            32 /* size units in which s is increased */

static int a_max = ARRAYSIZE;
static int i_max = INC;  /* maximum offset in s */

#define LETTER(ch) (isupper(ch) || islower(ch))
