There is a very good book that have a sharp insight about how the brain may work.Try particularly chapter X, XI and XII of: GODEL , ESCHER, BACH Douglas R. Hofstadter ; Vintage Books. ISBN 0-394-74502-7