A study upon short term and long term memory mechanisms