Updated `asin` to use the inverse_cst lookup table

Added a function `inverse_lookup` which performs the lookup in
the appropriate lookup table. This is needed because there will
be a different lookup table for `atan`. So a generic function
to search in the appropriate lookup table.