Added class `sec`

Added class `sec` and updated all the methods in the basic
trignometric API