Implemented contractive autoencoders