Optimizations

1. Data filtering speed up
2. Replaced chrono with POSIXlt
2. Comments added