C implementation (to test) and Java program
Time changed