improvements

1) Number of reducers use 1 only when intervals are to be determined
2) Read only useful bytes from BytesWritable