Twins sign recovering pitcher Michael Pineda for 2 years, $10M