Implementation of a phase detection algorithm for dynamic cardiac computed tomography analysis based on time dependent contrast agent distribution