Refactored feature extraction logic as well

- now for each cursor we create history window instead of construting them before hand
Moved History Window method to under sampling