calculate the median of the total results
use npm amortize module
remove local amortize files