Final Working Code with all metrics for all datasets