Immersed Boundary Method For Cavitating And Biological Flows