Remove some dead code and macros
Remove ANNOY
Remove SET_UID support
Remove time limitation