Changed FT ranking algorithm

Main code rev. 1768