Phase stability test

Added a method to check how many phases are stable, a faster way of figuring out if trying isothermalFlash() is worth your time or not