A fast tracking algorithm for the ATLAS level 2 trigger