Brooklyn man admits to 3 murders