Exploring the Chemical Space and Biological Activity of Nitrogen-Containing Compounds