Where could I find a MATLAB implementation of TCAS algorithms?
MIT LL did indeed build a TCAS model in Simulink/Matlab which was used to validate the algorithms. I doubt they will release it, but it's worth trying to start there.

Otherwise, they did release quite a bit of details in reports. You'll probably end up rebuilding it from their logic.