Rapid methods for comparing protein structures and scanning structure databases