Implement the Math#signum method

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>