20. finish timing tables
21. use sqrt when q=0.5 to increase speed