Laid groundwork for partition a file for the sake of multi-threading