A Novel Near-Infrared Spectroscopy Based Spatiotemporal Cognition Study of the Human Brain Using Clustering