Fixed corner cases in local_cache_analysis Squashed commit of the following:
Fixed corner cases in local_cache_analysis
Squashed commit of the following:

commit 098c73c4383827394e66c5352510b9ac3f77254b
Author: Saimadhav Heblikar <saimadhavheblikar@gmail.com>
Date:   Sat Oct 24 22:25:00 2015 +0530

    working on local cache analysis

commit 7cb7b550d8c4d8d7c51de6020a2afebe0a15d3d7
Author: Saimadhav Heblikar <saimadhavheblikar@gmail.com>
Date:   Sat Oct 24 22:22:37 2015 +0530

    working on local cache analysis

commit 4ec1eb1241ba654038fb90a72697480ae355f233
Author: Saimadhav Heblikar <saimadhavheblikar@gmail.com>
Date:   Sat Oct 24 22:21:59 2015 +0530

    working on local cache analysis

sahutd/cachediff,sahutd/cachediff,sahutd/cachediff