First commit; some functions for Kuramoto model