Noncommutative geometry and the BV formalism: application to a U(2)-matrix model