Refactored code in FteIndex for better modularity
Added steps of the alternative algorithm in comments