Who developed  a complex system of metrology in the 4th century BC