Templatized a function and removed its duplicate, plus minor optimization.
tree5c785c7e68cfd05ec8b3369e5a4274bb18cbe5dc
drwxr-xr-x - AstroToolbox
-rw-r--r-- 2227 CMakeLists.txt
drwxr-xr-x - Functions
drwxr-xr-x - GOclasses
drwxr-xr-x - SolversThreads
-rw-r--r-- 266 constants.h
drwxr-xr-x - external_headers
-rw-r--r-- 28541 main.cpp