[#25, #27] use array summary for calculating CPI and SPI instead of hash last
Merge pull request #28 from marutosi/fix_cpi_and_spi

[#25, #27] use array summary for calculating CPI and SPI instead of hash last