Algorithmic transformations in the implementation of K- means clustering on reconfigurable hardware | Synapse