Add sparse table RMQ in Java

Static RMQ is needed to solve some string processing problems with suffix arrays, so it might be useful to have this in Java as well.